package com.cdplife.ci.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 保险公司表
 * </p>
 *
 * @author jers
 * @since 2018-11-07
 */
@TableName("insurance")
public class Insurance extends Model<Insurance> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("created_by")
    private String createdBy;
    @TableField("created_date")
    private Date createdDate;
    @TableField("last_modified_by")
    private String lastModifiedBy;
    @TableField("last_modified_date")
    private Date lastModifiedDate;
    /**
     * 保险公司CODE，不重复
     */
    @TableField("insurance_code")
    private String insuranceCode;
    /**
     * 保险公司名
     */
    @TableField("insurance_name")
    private String insuranceName;
    /**
     * 保险公司简称
     */
    @TableField("insurance_abbr")
    private String insuranceAbbr;
    /**
     * 社会信用代码
     */
    @TableField("credit_code")
    private String creditCode;
    /**
     * 附件个数，冗余字段
     */
    @TableField("accessory_num")
    private Integer accessoryNum;
    /**
     * 文件是否删除 0：未删除（正常） 1：已删除
     */
    @TableField("is_del")
    private Integer isDel;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastModifiedBy() {
        return lastModifiedBy;
    }

    public void setLastModifiedBy(String lastModifiedBy) {
        this.lastModifiedBy = lastModifiedBy;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public String getInsuranceCode() {
        return insuranceCode;
    }

    public void setInsuranceCode(String insuranceCode) {
        this.insuranceCode = insuranceCode;
    }

    public String getInsuranceName() {
        return insuranceName;
    }

    public void setInsuranceName(String insuranceName) {
        this.insuranceName = insuranceName;
    }

    public String getInsuranceAbbr() {
        return insuranceAbbr;
    }

    public void setInsuranceAbbr(String insuranceAbbr) {
        this.insuranceAbbr = insuranceAbbr;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public Integer getAccessoryNum() {
        return accessoryNum;
    }

    public void setAccessoryNum(Integer accessoryNum) {
        this.accessoryNum = accessoryNum;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Insurance{" +
        ", id=" + id +
        ", createdBy=" + createdBy +
        ", createdDate=" + createdDate +
        ", lastModifiedBy=" + lastModifiedBy +
        ", lastModifiedDate=" + lastModifiedDate +
        ", insuranceCode=" + insuranceCode +
        ", insuranceName=" + insuranceName +
        ", insuranceAbbr=" + insuranceAbbr +
        ", creditCode=" + creditCode +
        ", accessoryNum=" + accessoryNum +
        ", isDel=" + isDel +
        "}";
    }
}
